package cn.wolfcode.wolf2w.redis.service;

import cn.wolfcode.wolf2w.domain.UserInfo;

public interface IUserInfoRedisService {
    void saveCode(String phone ,String code);


    void setPassword(String nickname, String password);

    String getPassword(String nickname);

    String getCode(String phone);

    /**
     * 存储登陆token
     *
     * @param user
     */
    String saveToken(UserInfo user);

    UserInfo getUserByToken(String token);
}
